ontuplereceived Event |
This event is fired for each tuple in a data received from backend that has no ID attribute.
Syntax
Inline HTML |
<div cordysType="wcp.libaray.data.BusDataIsland id= "busdataislandID" ontuplereceived="handler()"...> ... </div> |
Event property |
busdataislandID.ontuplereceived = handler |
Event Information
To Invoke |
N/A. |
Default Action |
Initiates any action associated with this event. |
Event Object Properties
Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.
Property |
Description |
---|---|
tuple |
Read-only. Object that contains the tuple received from the gateway response. |
Example
The following example shows how the event is used.
<!-- Busdataisland definition --> <div cordysType="wcp.libaray.data.BusDataIsland id="Products" request="ProductsQuery.XMLDocument" async="false" ontuplereceived="showTuple()"> </div> <!-- Function called by the event --> function showTuple() { var eventData = window.application.event.tuple; var productName = cordys.getTextContent(cordys.selectXMLNode(eventData,".//*[local-name()='ProductName']")); application.notify("Product : " + productName); }